﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/MasterPage.master" AutoEventWireup="true"
    CodeFile="Checkout.aspx.cs" Inherits="Pages_Checkout" %>

<%@ Register TagPrefix="uc1" TagName="CustomerDetailsEdit" Src="~/Pages/CustomerDetailsEdit.ascx" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" runat="Server">
    <asp:Label ID="titleLabel" runat="server" CssClass="ShoppingCartTitle" Text="Ваша корзина покупок" />&nbsp;<br />
    <br />
    <asp:GridView ID="grid" runat="server" AutoGenerateColumns="False" DataKeyNames="id_present"
        BorderWidth="1px" Width="100%">
        <Columns>
            <asp:BoundField DataField="name_p" HeaderText="Наименование" ReadOnly="True" SortExpression="name_p" />
            <asp:BoundField DataField="price" DataFormatString="{0:c}" HeaderText="Цена" ReadOnly="True"
                SortExpression="Price" />
            <asp:BoundField DataField="amount" HeaderText="Количество" ReadOnly="True" 
                SortExpression="amount" />
            <asp:BoundField DataField="subtotal" DataFormatString="{0:c}" HeaderText="Сумма"
                ReadOnly="True" SortExpression="subtotal" />
        </Columns>
    </asp:GridView>
    <asp:Label ID="Label2" runat="server" Text="Общая сумма: " CssClass="ProductDescription" />
    <asp:Label ID="totalAmountLabel" runat="server" Text="Label" CssClass="ProductPrice" />
    <br />
    <br />
    <uc1:CustomerDetailsEdit ID="CustomerDetailsEdit1" runat="server" Editable="false"
        Title="User Details" />
    <br />
    <asp:Label ID="InfoLabel" runat="server" CssClass="InfoText" />
    <br />
    <br />
    <asp:Button ID="placeOrderButton" runat="server" CssClass="ButtonText" Text="Оформить заказ"
        OnClick="placeOrderButton_Click" />
</asp:Content>
